home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 25 / AACD 25.iso / AACD / Magazine / Online / QMail / source / seek_end.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-15  |  153 b   |  8 lines

  1. #include <sys/types.h>
  2. #include "seek.h"
  3.  
  4. #define END 2 /* sigh */
  5.  
  6. int seek_end(fd) int fd;
  7. { if (lseek(fd,(off_t) 0,END) == -1) return -1; return 0; }
  8.